package com.mall.group_booking.feign;

import com.mall.common.annotation.IngoreResponseAdvice;
import com.mall.entity.TbItmeSpec;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author: W
 * @date: 2021/07/27/22:01
 * Other:
 */
@FeignClient("product")
@RequestMapping("/itemSpec")
public interface ItemSpecFeignService {


    /**
     * 发现通过id
     *
     * @param id id
     * @return {@link TbItmeSpec}
     */
    @GetMapping("/findById")
    @IngoreResponseAdvice
    public TbItmeSpec findById(@RequestParam("id") Long id);

    /**
     * 更新
     *
     * @param itemSpec 项规范
     */
    @PutMapping("/update")
    @IngoreResponseAdvice
    void update(@RequestBody TbItmeSpec itemSpec);
}
